import printJS from '@/utils/print-js';
import printSass from '!css-loader!sass-loader!@/style/print/common/table.scss';
export default {
  methods: {
    /**
     * @description 打印单页,printable为打印的表格id
     */
    print(id, printStyle = printSass) {
      printJS({
        printable: id,
        type: 'html',
        style: printStyle.toString(),
      });
    },
  },
};
